<html>
  <head>
    <title>Xopus for DITA</title>
    <link rel="stylesheet" type="text/css" href="ui/example-app.css"/>
  </head>
  <body id="xopusContainer">
    <iframe id="navigation" src="view-navigation.php" frameborder="0" width="23%" height="100%"></iframe>
    <iframe id="xopusFrame" src="view-xopus-island-empty.php" frameborder="0"  width="77%" height="100%"></iframe>

    <div id="xopusPlatformTest">
      This Xopus for DITA installation requires PHP with XSLT support 
      on your webserver. See <a href="requirements.html">requirements</a>.
    </div>

    <script type="text/javascript">
    function hidePlatformTest() {
      document.getElementById("xopusPlatformTest").style.display = 'none';
    }
    </script>
<?php

    $doc = "<script type=\"text/javascript\">hidePlatformTest();</script>";
    $xslt = '
<xsl:stylesheet version="1.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <xsl:template match="@* | node()">
    <xsl:copy>
      <xsl:apply-templates select="@* | node() "/>
    </xsl:copy>
  </xsl:template>
</xsl:stylesheet>';

    $domdoc = new DOMDocument;
    $domdoc->loadXML($doc);
    $domxslt = new DOMDocument;
    $domxslt->loadXML($xslt);
    $proc = new XSLTProcessor;
    $proc->importStylesheet($domxslt);
    echo $proc->transformToXML($domdoc);
?>
  </body>
</html>
